Previous Book Contents Book Index Next

Inside Macintosh: QuickTime /
Chapter 2 - Movie Toolbox / Movie Toolbox Reference
Matrix Functions /


GetMatrixType

The GetMatrixType function allows your application to obtain information about a matrix. This information indicates the nature of the transformation defined by the matrix.

pascal short GetMatrixType (MatrixRecordPtr m);
m
Points to the matrix for this operation.
DESCRIPTION
The GetMatrixType function returns an integer that indicates the nature of the transformation defined by the matrix. The following values are possible:

identityMatrixType
Indicates that the specified matrix is an identity matrix.
translateMatrixType
Indicates that the specified matrix defines a translation operation.
scaleMatrixType
Indicates that the specified matrix defines a scaling operation.
scaleTranslateMatrixType
Indicates that the specified matrix defines both a translation operation and a scaling operation.
linearMatrixType
Indicates that the specified matrix defines a rotation, skew, or shear operation.
linearTranslateMatrixType
Indicates that the specified matrix defines both a translation operation and a rotation, skew, or shear operation.
perspectiveMatrixType
Indicates that the specified matrix defines a perspective (nonlinear) operation.
ERROR CODES
None


Previous Book Contents Book Index Next

© Apple Computer, Inc.
6 JUL 1996